
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.vo.OrderDetail"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>易买网 - 首页</title>
		<link type="text/css" rel="stylesheet" href="css/style.css" />

	</head>
	<body>
		<div id="header" class="wrap">
			<div id="logo">
				a
				<img src="images/logo.gif" />
			</div>
			<div class="help">
				<a href="shopServlet" class="shopServlet">购物车</a>
				<c:if test="${Uname == null}">
					<a href="login.jsp">登录</a>
				</c:if>
				<c:if test="${Uname != null}">
					<a href="#">用户:${Uname}</a>
				</c:if>
				<a href="register.html">注册</a><a href="guestbook.html">留言</a>
			</div>
			<div class="navbar">
				<ul class="clearfix">
					<li class="current">
						<a href="#">首页</a>
					</li>
					<li>
						<a href="#">图书</a>
					</li>
					<li>
						<a href="#">百货</a>
					</li>
					<li>
						<a href="#">品牌</a>
					</li>
					<li>
						<a href="#">促销</a>
					</li>
				</ul>
			</div>
			<script type="text/javascript">
	
</script>
		</div>
		<div id="childNav">
			<div class="wrap">
				<ul class="clearfix">
					<li class="first">
						<a href="#">音乐</a>
					</li>
					<li>
						<a href="#">影视</a>
					</li>
					<li>
						<a href="#">少儿</a>
					</li>
					<li>
						<a href="#">动漫</a>
					</li>
					<li>
						<a href="#">小说</a>
					</li>
					<li>
						<a href="#">外语</a>
					</li>
					<li>
						<a href="#">数码相机</a>
					</li>
					<li>
						<a href="#">笔记本</a>
					</li>
					<li>
						<a href="#">羽绒服</a>
					</li>
					<li>
						<a href="#">秋冬靴</a>
					</li>
					<li>
						<a href="#">运动鞋</a>
					</li>
					<li>
						<a href="#">美容护肤</a>
					</li>
					<li>
						<a href="#">家纺用品</a>
					</li>
					<li>
						<a href="#">婴幼奶粉</a>
					</li>
					<li>
						<a href="#">饰品</a>
					</li>
					<li class="last">
						<a href="#">Investor Relations</a>
					</li>
				</ul>
			</div>
		</div>
		<script type="text/javascript">
	
</script>
		<div id="position" class="wrap" >
			您现在的位置：
			<a href="index.html">易买网</a> &gt; 购物车
		</div>
		<div class="wrap">
			<div id="shopping">
				<form action="orderServlet" method="post">
					<table>
						<tr>
							<th>
							</th>
							<th>
								商品名称
							</th>
							<th>
								商品价格
							</th>
							<th>
								购买数量
							</th>
							<th>
								小计
							</th>
							<th>
								操作
							</th>
							<c:forEach items="${shopcartlist}" var="v">
						</tr>
						<tr id="product_id_1">
							<td><input type="checkbox" name="ck" value="${v.sp_id}"/></td>
							<td class="thumb">
								<img src="${v.sp_file_name}" />
								<a href="product-view.html">${v.sp_name}</a>
							</td>
							<td class="price" id="price_id_1">
								<span>${v.sp_price}$</span>
								<input type="hidden" value="99" />
							</td>
							<td class="number">

								<dl>
									<c:if test="${v.sp_num > 1}">
										<dd>
											<a
												href="shopServlet?num=${v.sp_num}&type=del&sh_id=${v.sp_id}">-</a>
										</dd>
									</c:if>
									<dt>
										<input id="number_id_1" type="text" name="number"
											value="${v.sp_num}" />
									</dt>
									<dd>
										<a
											href="shopServlet?num=${v.sp_num}&type=add&sh_id=${v.sp_id}">+</a>
									</dd>
								</dl>
								<%
									List<OrderDetail> list = new ArrayList<OrderDetail>();
										OrderDetail detail = new OrderDetail();
								%>
							</td>
							<td class="delete">
								<fmt:formatNumber type="number" value="${v.sp_num*v.sp_price}"
									pattern="0.00" maxFractionDigits="2" />
							</td>
							<td class="delete">
								<a href="shopServlet?rsh_id=${v.sp_id}">删除</a>
							</td>
						</tr>
						</c:forEach>
					</table>
					

					<div class="button">
						<input type="submit" value="" />
					</div>
					付款方式：
					<select name="eo_type">
						<option selected="selected" value="1">
							在线支付
							<option value="2">
								货到付款
					</select>

				</form>

			</div>

		</div>
		<div id="footer">
			Copyright &copy; 2010 湖南汽车工程职业学院 All Rights Reserved. 京ICP证1000001号
		</div>
	</body>
</html>
